package ctype

import "encoding/json"

type SingStatus int

const (
	SignQQ    SingStatus = 1 //QQ
	SignGitee SingStatus = 2 //Gitee
	SignEmail SingStatus = 3 //Email
)

func (s SingStatus) MarshalJSON() ([]byte, error) {
	return json.Marshal(s.String())
}

func (s SingStatus) String() string {
	var str string
	switch s {
	case SignQQ:
		str = "QQ"
	case SignGitee:
		str = "Gitee"
	case SignEmail:
		str = "Email"
	default:
		str = "其他"
	}
	return str
}
